package com.weixin.vo;

import java.io.InputStream;
import java.util.Map;

import com.google.common.collect.Maps;

/**
 * 请求尾部系统返回结果集合
 * 
 * @author yu.peng
 * @version [1.0, 2016年6月8日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class HttpResult {

	/**
	 * 结果：默认 1-成功
	 */
	private String status = FrameWorkCode.TYPE_OK;

	/**
	 * 读取内容长度
	 */
	private long contentLength;

	/**
	 * 请求返回的协议头信息
	 */
	private Map<String, String> resultHeaderMap = Maps.newHashMap();

	/**
	 * 请求返回的流
	 */
	private InputStream is;
	

	public HttpResult() {
		super();
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public InputStream getIs() {
		return is;
	}

	public void setIs(InputStream is) {
		this.is = is;
	}

	public long getContentLength() {
		return contentLength;
	}

	public void setContentLength(long contentLength) {
		this.contentLength = contentLength;
	}

	public Map<String, String> getResultHeaderMap() {
		return resultHeaderMap;
	}

	public void setResultHeaderMap(Map<String, String> resultHeaderMap) {
		this.resultHeaderMap = resultHeaderMap;
	}

}
